package org.br.erp.rfq.po.service;

import com.alibaba.fastjson.JSONArray;
import org.br.erp.rfq.po.entity.Scmpoattach;
import org.br.erp.rfq.po.entity.Scmpoitem;
import org.br.erp.rfq.po.entity.Scmpo;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 采购订单
 * @Author: jeecg-boot
 * @Date:   2023-09-17
 * @Version: V1.0
 */
public interface IScmpoService extends IService<Scmpo> {

	/**
	 * 添加一对多
	 *
	 * @param scmpo
	 * @param scmpoitemList
	 * @param scmpoattachList
	 */
	public void saveMain(Scmpo scmpo,List<Scmpoitem> scmpoitemList,List<Scmpoattach> scmpoattachList) ;

	/**
	 * 修改一对多
	 *
	 * @param scmpo
	 * @param scmpoitemList
	 * @param scmpoattachList
	 */
	public void updateMain(Scmpo scmpo,List<Scmpoitem> scmpoitemList,List<Scmpoattach> scmpoattachList);


	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	public void generatePO(List<String> ids);
	
}
